import 'package:base_plugin/base_plugin.dart';
import 'package:finance_app/src/common/app_colors.dart';
import 'package:flutter/material.dart';

class NormalErrorText extends StatelessWidget {
  final bool isVisibility;
  final String content;
  final EdgeInsets margin;

  const NormalErrorText({Key key, this.isVisibility, this.content, this.margin})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Visibility(
      visible: isVisibility ?? false,
      child: Container(
        margin: margin ??
            EdgeInsets.only(
              left: getDp(35),
            ),
        child: Text(
          content,
          style: TextStyle(
            color: aceRedColor,
            fontSize: getSp(12),
            fontWeight: FontWeight.w400,
            height: 14 / 12,
          ),
        ),
      ),
    );
  }
}
